This snippet script shows how to set up a simple warning dialog with AppleScript.